package com.csd.pojo;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * @JavaBean Team
 * @author CSD
 * @version 1.1.1
 * @date 2009-12-16
 * @description 研究领域
 */

public  class ResearchField  implements java.io.Serializable {


    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields    
	/**数据库唯一标识*/
     private Integer id;
     /**领域名称*/
     private String name;
     /**领域描述*/
     private String description;
     /**所在领域的工程集*/
     private Set<Project> projects = new HashSet<Project>(0);
     /**所在领域的研究老师*/
     private Set<Teacher> teachers = new HashSet<Teacher>(0);


    // Constructors

    /** default constructor */
    public ResearchField() {
    }

	/** minimal constructor */
    public ResearchField(String name) {
        this.name = name;
    }
    
    /** full constructor */
    public ResearchField(String name, String description, Set<Project> projects, Set<Teacher> teachers) {
        this.name = name;
        this.description = description;
        this.projects = projects;
        this.teachers = teachers;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }

	public Set<Project> getProjects() {
		return projects;
	}

	public void setProjects(Set<Project> projects) {
		this.projects = projects;
	}

	public Set<Teacher> getTeachers() {
		return teachers;
	}

	public void setTeachers(Set<Teacher> teachers) {
		this.teachers = teachers;
	}


	@Override
	public String toString() {
		return this.getName();
	}








}